﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowAllEmployeeControl.ascx.cs" Inherits="Control_ShowCustomer" %>

<h2>Employee Settings</h2> 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <a style="margin:0em 0em 0em 0.5em;">EmployeeName:</a><a style="margin:5em 0em 0em 0.5em;"><asp:TextBox ID="txtEmployeeName" runat="server" Width="100px"></asp:TextBox></a>

       <a style="margin:0em 0em 0em 0.5em;">Email:</a><a style="margin:5em 0em 0em 0.5em;"><asp:TextBox ID="txtEmail" runat="server" Width="100px"></asp:TextBox></a> 
        <asp:Button ID="btnsearch" runat="server" Text="Search" 
            onclick="btnsearch_Click"/>
        <asp:Label ID="lblnull" runat="server" Text="Not Found The Value" 
            BorderColor="#CC0000" ForeColor="#CC0000" Visible="False"></asp:Label>  
    <table id="rounded-corner">
        <tr>
        	<th scope="col" class="rounded-company"></th>
            <th scope="col" class="rounded">LoginName</th>
            <th scope="col" class="rounded">FullName</th>
            <th scope="col" class="rounded">Age</th>
            <th scope="col" class="rounded">Sex</th>
            <th scope="col" class="rounded-q4">Address</th>
            <th scope="col" class="rounded">Phone</th>
            <th scope="col" class="rounded">Email</th>
            <th scope="col" class="rounded">Qualification</th>
            <th scope="col" class="rounded-q4">Create</th>
        </tr>

<asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="IdEmployee" DataKeyNames="IdEmployee">
    <ItemTemplate>
        <tr>
        	<td><input type="checkbox" name="IdEmployee" value="<%# Eval("IdEmployee") %>"/></td>
            <td><%# Eval("LoginName")%></td>
            <td><%# Eval("FullNameEmployee")%></td>
            <td><%# Eval("AgeEmployee")%></td>
            <td><%# Eval("SexEmployee")%></td>
            <td><%# Eval("AddressEmployee")%></td>
            <td><%# Eval("EmailEmployee")%></td>
            <td><%# Eval("PhoneEmployee")%></td>      
            <td><%# Eval("Qualification")%></td>
            <td><%# Eval("CreateDate")%></td>
    
            <td><a href="UpdateEmployee_Admin.aspx?idEmployee=<%# Eval("idEmployee") %>&loginName=<%# Eval("loginName") %>&fullNameEmployee=<%# Eval("fullNameEmployee") %>&age=<%# Eval("ageEmployee") %>&sex=<%# Eval("sexEmployee") %>&addressEmployee=<%# Eval("addressEmployee") %>&emailEmployee=<%# Eval("phoneEmployee") %>&phoneEmployee=<%# Eval("emailEmployee") %>&Qualification=<%# Eval("qualification") %>"><img src="../Images/user_edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="DeleteEmployee_Admin.aspx?idemployee=<%# Eval("idemployee") %>" class="ask"><img src="../Images/trash.png" alt="" title="" border="0" /></a></td>
        </tr>
    </ItemTemplate>
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="IdEmployee"></asp:PlaceHolder>
    </LayoutTemplate>
</asp:ListView> 
</table>
	 <a href="InsertEmployee_Admin.aspx<%# Eval("") %>" class="bt_green"><span class="bt_green_lft"></span><strong>Add new item</strong><span class="bt_green_r"></span></a>
     <a href="#" class="bt_blue"><span class="bt_blue_lft"></span><strong>View all items from category</strong><span class="bt_blue_r"></span></a>
     <a href="#" class="bt_red"><span class="bt_red_lft"></span><strong>Delete items</strong><span class="bt_red_r"></span></a> 
     

     <div class="pagination">
         <asp:DataPager ID="DataPagerForAlbums" runat="server" PagedControlID="ListView1" PageSize="5">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" FirstPageText="&laquo prev" ShowNextPageButton="False"  ShowPreviousPageButton="false" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowLastPageButton="True" LastPageText="&raquo next" ShowPreviousPageButton="False"  ShowNextPageButton="false" />
                </Fields>
         </asp:DataPager>
     </div>
        
        </p>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="DataPagerForAlbums" />
    </Triggers>
</asp:UpdatePanel>


